package com.demo3;

/**
 * Created by Administrator on 2017/3/25.
 */
public class ShuZu3 {
    public static void main(String[] args) {
        int[] array1 = new int[5];
        array1[0] = 1;
        array1[1] = 2;
        array1[2] = 3;
        array1[3] = 4;
        array1[4] = 5;
        int[] array2 = {1, 2, 3, 4, 5};

        for (int i = 0; i < 5; i++)
            System.out.println("array[i]=" + array1[i]);
        for (int i = 0; i < 5; i++)
            System.out.println("array[i]=" + array2[i]);


    }
}
